package com.qq.game;

import java.lang.reflect.Method;

public class Test {
    public static void main(String[] args) throws Exception {
        Class<?> aClass = Class.forName("com.qq.game.n.Entry");

        Method[] declaredMethods = aClass.getDeclaredMethods();
        Object o = aClass.newInstance();
        for (Method declaredMethod : declaredMethods) {
            if (declaredMethod.getName().equals("begin")){

                declaredMethod.invoke(o);
            }
        }

    }
}